package Day09;

import java.util.Scanner;

public class Texxt1 {
    private static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        calculate();
    }

    public static void calculate(){
        System.out.println("请输入第一个数字");
        int number1 = sc.nextInt();
        System.out.println("请输入第二个数字");
        int number2 = sc.nextInt();
        if(number2 == 0){
            ArithmeticException e = new ArithmeticException("除法运算中除数不能为零");
            throw e;
        }
        int result = number1 / number2;

        System.out.println(result);

    }
}
